unit crd_TenantIncoming;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, shbl_Card, StdCtrls, ActnList, ComCtrls, ToolWin, Buttons,
  ExtCtrls, DB, FIBDataSet, pFIBDataSet, DBGridEh, DBCtrlsEh, Mask,
  DBLookupEh;

type
  TcrdTenantIncoming = class(TshblCard)
    Label1: TLabel;
    Label2: TLabel;
    Label3: TLabel;
    Label4: TLabel;
    Label5: TLabel;
    dsDocTypes: TpFIBDataSet;
    dscDocTypes: TDataSource;
    DBLookupComboboxEh1: TDBLookupComboboxEh;
    DBEditEh1: TDBEditEh;
    DBDateTimeEditEh1: TDBDateTimeEditEh;
    DBDateTimeEditEh2: TDBDateTimeEditEh;
    DBEditEh2: TDBEditEh;
    Label6: TLabel;
    DBEditEh3: TDBEditEh;
    procedure FormCreate(Sender: TObject);
    procedure aSaveExecute(Sender: TObject);
    procedure aCancelExecute(Sender: TObject);
    procedure DBLookupComboboxEh1Change(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  crdTenantIncoming: TcrdTenantIncoming;

implementation

uses crd_Tenant, uMAIN;

{$R *.dfm}

procedure TcrdTenantIncoming.FormCreate(Sender: TObject);
begin
  inherited;
  if not dsDocTypes.Database.Connected then exit;
  dsDocTypes.Open;
end;

procedure TcrdTenantIncoming.aSaveExecute(Sender: TObject);
begin
  inherited;
  ModalResult := mrOk;
end;

procedure TcrdTenantIncoming.aCancelExecute(Sender: TObject);
begin
  inherited;
  ModalResult := mrCancel;
end;

procedure TcrdTenantIncoming.DBLookupComboboxEh1Change(Sender: TObject);
begin
  lcbChange (Sender);
end;

end.
